/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED3_Pin GPIO_PIN_0
#define LED3_GPIO_Port GPIOC
#define LED2_Pin GPIO_PIN_1
#define LED2_GPIO_Port GPIOC
#define LED1_Pin GPIO_PIN_2
#define LED1_GPIO_Port GPIOC
#define MCU_POWER_Pin GPIO_PIN_3
#define MCU_POWER_GPIO_Port GPIOC
#define ENCODER_A_Pin GPIO_PIN_0
#define ENCODER_A_GPIO_Port GPIOA
#define ENCODER_B_Pin GPIO_PIN_1
#define ENCODER_B_GPIO_Port GPIOA
#define USART2_TX_BLE_Pin GPIO_PIN_2
#define USART2_TX_BLE_GPIO_Port GPIOA
#define USART2_RX_BLE_Pin GPIO_PIN_3
#define USART2_RX_BLE_GPIO_Port GPIOA
#define LCD_SCK_Pin GPIO_PIN_5
#define LCD_SCK_GPIO_Port GPIOA
#define LCD_MISO_Pin GPIO_PIN_6
#define LCD_MISO_GPIO_Port GPIOA
#define LCD_MOSI_Pin GPIO_PIN_7
#define LCD_MOSI_GPIO_Port GPIOA
#define LCD_DC_Pin GPIO_PIN_4
#define LCD_DC_GPIO_Port GPIOC
#define LCD_BLK_Pin GPIO_PIN_5
#define LCD_BLK_GPIO_Port GPIOC
#define LCD_RES_Pin GPIO_PIN_0
#define LCD_RES_GPIO_Port GPIOB
#define LCD_CS1_Pin GPIO_PIN_1
#define LCD_CS1_GPIO_Port GPIOB
#define LCDCS2_Pin GPIO_PIN_2
#define LCDCS2_GPIO_Port GPIOB
#define RELAY_B10_Pin GPIO_PIN_10
#define RELAY_B10_GPIO_Port GPIOB
#define BEEP_Pin GPIO_PIN_11
#define BEEP_GPIO_Port GPIOB
#define VALVE_3_Pin GPIO_PIN_12
#define VALVE_3_GPIO_Port GPIOB
#define VALVE_2_Pin GPIO_PIN_13
#define VALVE_2_GPIO_Port GPIOB
#define VALVE_1_Pin GPIO_PIN_14
#define VALVE_1_GPIO_Port GPIOB
#define ULN2003_A_Pin GPIO_PIN_15
#define ULN2003_A_GPIO_Port GPIOB
#define ULN2003_B_Pin GPIO_PIN_6
#define ULN2003_B_GPIO_Port GPIOC
#define ULN2003_C_Pin GPIO_PIN_7
#define ULN2003_C_GPIO_Port GPIOC
#define ULN2003_D_Pin GPIO_PIN_8
#define ULN2003_D_GPIO_Port GPIOC
#define TIM3_CH4_SPEAKER_Pin GPIO_PIN_9
#define TIM3_CH4_SPEAKER_GPIO_Port GPIOC
#define BUSY_SPEAKER_Pin GPIO_PIN_8
#define BUSY_SPEAKER_GPIO_Port GPIOA
#define MAX485_TX_Pin GPIO_PIN_9
#define MAX485_TX_GPIO_Port GPIOA
#define MAX485_RX_Pin GPIO_PIN_10
#define MAX485_RX_GPIO_Port GPIOA
#define MAX485_DIR_Pin GPIO_PIN_11
#define MAX485_DIR_GPIO_Port GPIOA
#define ENCODER_KEY_Pin GPIO_PIN_12
#define ENCODER_KEY_GPIO_Port GPIOA
#define USART2_CTS_Pin GPIO_PIN_15
#define USART2_CTS_GPIO_Port GPIOA
#define USART2_RTS_Pin GPIO_PIN_10
#define USART2_RTS_GPIO_Port GPIOC
#define UART5_TX_OCS_Pin GPIO_PIN_12
#define UART5_TX_OCS_GPIO_Port GPIOC
#define UART5_RX_OCS_Pin GPIO_PIN_2
#define UART5_RX_OCS_GPIO_Port GPIOD
#define I2C1_WP_EE_Pin GPIO_PIN_5
#define I2C1_WP_EE_GPIO_Port GPIOB
#define I2C1_SCL_EE_Pin GPIO_PIN_6
#define I2C1_SCL_EE_GPIO_Port GPIOB
#define I2C1_SDA_EE_Pin GPIO_PIN_7
#define I2C1_SDA_EE_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
